<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/3/15
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <style>
        html, body {
            width: 100%;
            height: 100%;
        }

        .login {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .login-layout {
            position: absolute;
            width: 500px;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 150, 136, 0.1);
            padding: 100px 80px 80px 50px;
        }

        .logo{
            font-size: 30px;
            width: 100%;
            text-align: center;
            margin-bottom: 10px;
        }

    </style>
</head>
<body>
<%@ include file="window.jsp"%>
<div class="login">
    <div class="login-layout">
        <form class="layui-form" method="post"
              action="doLogin.jsp">
            <div class="layui-form-item">
                <label class="layui-form-label logo">
                    图书馆
                </label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"
                       style="text-align: center">用户名
                </label>
                <div class="layui-input-block">
                    <input type="text" name="username"
                           placeholder="请输入"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="text-align:
                center">密码</label>
                <div class="layui-input-block">
                    <input type="text" name="password"
                           placeholder="请输入"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="float: right">
                    <button class="layui-btn" lay-submit
                            lay-filter="*">登录
                    </button>
                    <button class="layui-btn layui-btn-primary">注册


                    </button>
                </div>
            </div>
            <!-- 更多表单结构排版请移步文档左侧【页面元素-表单】一项阅览 -->
        </form>
    </div>
</div>

<script src="layui.js">
    }
</script>
<script>
    layui.use('form',function () {
        var form = layui.form;

        //各种基于事件的操作，下面会有进一步介绍
    });
</script>

</body>
</html>
